home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / fpc / compiler / msgidx.inc < prev    next >
Text File  |  1998-09-24  |  13KB  |  461 lines

  1. {
  2.     $Id: msgidx.inc,v 1.1.1.1.2.4 1998/04/27 23:07:00 peter Exp $
  3.     Copyright (c) 1998 by the FPC development team
  4.  
  5.     This file includes the message index types which can be used to display
  6.     a message from the message file
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 2 of the License, or
  11.     (at your option) any later version.
  12.  
  13.     This program is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.     GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public License
  19.     along with this program; if not, write to the Free Software
  20.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.  ****************************************************************************}
  23.  
  24. {
  25.   The constants are build in the following order:
  26.   <part>_<type>_<txtidentifier>
  27.  
  28.   <part> is the part of the compiler the message is used
  29.     assem_    assembler parsing
  30.     unit_     unit handling
  31.     scan_     scanner
  32.     general_  general info
  33.     exec_     calls to assembler, linker, binder
  34.  
  35.   <type> the type of the message it should normally used for
  36.     f_   fatal error
  37.     e_   error
  38.     w_   warning
  39.     n_   note
  40.     h_   hint
  41.     i_   info
  42.     l_   linenumber
  43.     u_   used
  44.     t_   tried
  45.     m_   macro
  46.     p_   procedure
  47.     c_   conditional
  48.     d_   debug message
  49.  
  50.   syn_ means a syntax error
  51. }
  52. type
  53.   tmsgconst = (
  54. general_i_kb_free,
  55. general_l_lines_and_free,
  56. general_i_stream_kb_free,
  57. general_i_ems_kb_free,
  58. general_i_compilername,
  59. general_i_unitsearchpath,
  60. general_d_sourceos,
  61. general_i_targetos,
  62. general_u_exepath,
  63. general_u_gcclibpath,
  64. general_i_abslines_compiled,
  65. {
  66.   Scanner part
  67. }
  68. scan_f_end_of_file,
  69. scan_f_string_exceeds_line,
  70. scan_f_illegal_char,
  71. scan_f_syn_expected,
  72. scan_u_start_include_file,
  73. scan_w_comment_level,
  74. scan_n_far_directive_ignored,
  75. scan_n_stack_check_global_under_linux,
  76. scan_w_illegal_switch,
  77. scan_w_switch_is_global,
  78. scan_e_illegal_char_const,
  79. scan_f_cannot_open_input,
  80. scan_f_cannot_open_includefile,
  81. scan_e_too_much_endifs,
  82. scan_w_only_pack_records,
  83. scan_e_endif_expected,
  84. scan_e_preproc_syntax_error,
  85. scan_e_error_in_preproc_expr,
  86. scan_w_marco_cut_after_255_chars,
  87. scan_e_endif_without_if,
  88. scan_f_user_defined,
  89. scan_e_user_defined,
  90. scan_w_user_defined,
  91. scan_n_user_defined,
  92. scan_h_user_defined,
  93. scan_i_user_defined,
  94. scan_e_keyword_cant_be_a_macro,
  95. scan_f_macro_buffer_overflow,
  96. scan_w_macro_deep_ten,
  97. scan_e_wrong_styled_switch,
  98. scan_d_handling_switch,
  99. scan_c_endif_found,
  100. scan_c_ifdef_found,
  101. scan_c_ifopt_found,
  102. scan_c_if_found,
  103. scan_c_ifndef_found,
  104. scan_c_else_found,
  105. scan_c_skipping_until,
  106. scan_i_press_enter,
  107. scan_w_unsupported_switch,
  108. scan_w_illegal_directive,
  109. {
  110.   Parser
  111. }
  112. parser_e_syntax_error,
  113. parser_w_proc_far_ignored,
  114. parser_w_proc_near_ignored,
  115. parser_e_no_dll_file_specified,
  116. parser_e_constructorname_must_be_init,
  117. parser_e_destructorname_must_be_done,
  118. parser_e_illegal_open_parameter,
  119. parser_e_proc_inline_not_supported,
  120. parser_w_priv_meth_not_virtual,
  121. parser_e_constructor_cannot_be_private,
  122. parser_e_destructor_cannot_be_private,
  123. parser_n_only_one_destructor,
  124. parser_e_no_local_objects,
  125. parser_e_no_anonym_objects,
  126. parser_e_ordinal_expected,
  127. parser_e_illegal_parameter_list,
  128. parser_e_overloaded_no_procedure,
  129. parser_e_overloaded_have_same_parameters,
  130. parser_e_header_dont_match_forward,
  131. parser_n_duplicate_enum,
  132. parser_n_interface_name_diff_implementation_name,
  133. parser_e_too_much_lexlevel,
  134. parser_e_range_check_error,
  135. parser_e_pointer_type_expected,
  136. parser_e_class_type_expected,
  137. parser_e_double_caselabel,
  138. parser_e_type_const_not_possible,
  139. parser_e_no_overloaded_procvars,
  140. parser_e_string_too_long,
  141. parser_w_use_extended_syntax_for_objects,
  142. parser_e_class_id_expected,
  143. parser_e_methode_id_expected,
  144. parser_e_header_dont_match_any_member,
  145. parser_p_procedure_start,
  146. parser_e_error_in_real,
  147. parser_e_fail_only_in_constructor,
  148. parser_e_no_paras_for_destructor,
  149. parser_e_strict_var_string_violation,
  150. parser_e_only_class_methods_via_class_ref,
  151. parser_e_only_class_methods,
  152. parser_e_case_mismatch,
  153. parser_e_illegal_symbol_exported,
  154. parser_w_should_use_override,
  155. parser_e_nothing_to_be_overridden,
  156. parser_e_no_procedure_to_access_property,
  157. parser_e_ill_property_access_sym,
  158. parser_e_cant_write_protected_member,
  159. parser_e_overloaded_are_not_both_virtual,
  160. parser_e_overloaded_methodes_not_same_ret,
  161. parser_e_dont_nest_export,
  162. parser_e_methods_dont_be_export,
  163. parser_e_call_by_ref_without_typeconv,
  164. parser_e_no_super_class,
  165. parser_e_self_not_in_method,
  166. parser_e_generic_methods_only_in_methods,
  167. parser_e_illegal_colon_qualifier,
  168. parser_e_illegal_set_expr,
  169. parser_e_pointer_to_class_expected,
  170. parser_e_expr_have_to_be_constructor_call,
  171. parser_e_expr_have_to_be_destructor_call,
  172. parser_e_typeconflict_in_set,
  173. parser_w_use_int_div_int_op,
  174. parser_e_invalid_record_const,
  175. parser_e_false_with_expr,
  176. parser_e_void_function,
  177. parser_e_constructors_always_objects,
  178. parser_w_convert_real_2_comp,
  179. parser_e_operator_not_overloaded,
  180. parser_e_varid_or_typeid_expected,
  181. parser_e_no_reraise_possible,
  182. parser_e_no_new_or_dispose_for_classes,
  183. parser_e_asm_incomp_with_function_return,
  184. parser_e_procedure_overloading_is_off,
  185. parser_e_overload_operator_failed,
  186. parser_e_comparative_operator_return_boolean,
  187. parser_e_only_virtual_methods_abstract,
  188. parser_f_unsupported_feature,
  189. parser_e_mix_of_classes_and_objects,
  190. parser_w_unknown_proc_directive_ignored,
  191. parser_e_absolute_only_one_var,
  192. parser_e_absolute_only_to_var_or_const,
  193. parser_e_abstract_no_definition,
  194. parser_e_overloaded_must_be_all_global,
  195. parser_e_succ_and_pred_enums_with_assign_not_possible,
  196. parser_w_virtual_without_constructor,
  197. parser_m_macro_defined,
  198. parser_m_macro_undefined,
  199. parser_m_macro_set_to,
  200. parser_i_compiling,
  201. parser_d_compiling_second_time,
  202. parser_e_no_paras_allowed,
  203. parser_e_no_property_found_to_override,
  204. parser_e_only_one_default_property,
  205. parser_e_property_need_paras,
  206. parser_e_constructor_cannot_be_not_virtual,
  207. parser_e_no_default_property_available,
  208. {
  209.   Symbol table
  210. }
  211. sym_n_local_var_not_init_yet,
  212. sym_e_id_not_found,
  213. sym_f_internal_error_in_symtablestack,
  214. sym_e_duplicate_id,
  215. sym_e_unknown_id,
  216. sym_e_forward_not_resolved,
  217. sym_f_id_already_typed,
  218. sym_e_type_id_expected,
  219. sym_e_type_mismatch,
  220. sym_e_error_in_type_def,
  221. sym_e_type_id_not_defined,
  222. sym_e_only_static_in_static,
  223. sym_e_invalid_call_tvarsymmangledname,
  224. sym_f_type_must_be_rec_or_class,
  225. sym_e_no_instance_of_abstract_object,
  226. sym_e_label_not_defined,
  227. sym_e_ill_label_decl,
  228. sym_e_goto_and_label_not_supported,
  229. sym_e_label_not_found,
  230. sym_e_id_is_no_label_id,
  231. sym_e_label_already_defined,
  232. sym_e_ill_type_decl_set,
  233. sym_e_class_forward_not_resolved,
  234. sym_h_identifier_not_used,
  235. sym_e_set_element_are_not_comp,
  236. sym_e_set_expected,
  237. sym_w_function_result_not_set,
  238. sym_e_illegal_field,
  239. sym_n_uninitialized_local_variable,
  240. sym_e_id_no_member,
  241. {
  242.   Codegenerator
  243. }
  244. cg_e_break_not_allowed,
  245. cg_e_continue_not_allowed,
  246. cg_e_too_complex_expr,
  247. cg_e_illegal_expression,
  248. cg_e_invalid_integer,
  249. cg_e_invalid_qualifier,
  250. cg_e_upper_lower_than_lower,
  251. cg_e_illegal_count_var,
  252. cg_e_cant_choose_overload_function,
  253. cg_e_parasize_too_big,
  254. cg_e_illegal_type_conversion,
  255. cg_e_file_must_call_by_reference,
  256. cg_e_cant_use_far_pointer_there,
  257. cg_e_var_must_be_reference,
  258. cg_e_dont_call_exported_direct,
  259. cg_w_member_cd_call_from_method,
  260. cg_n_inefficient_code,
  261. cg_w_unreachable_code,
  262. cg_e_stackframe_with_esp,
  263. cg_e_cant_call_abstract_method,
  264. cg_f_internal_error_in_getfloatreg,
  265. cg_f_unknown_float_type,
  266. cg_f_secondvecn_base_defined_twice,
  267. cg_f_extended_cg68k_not_supported,
  268. cg_f_32bit_not_supported_in_68000,
  269. cg_f_internal_error_in_secondinline,
  270. cg_d_register_weight,
  271. cg_e_stacklimit_in_local_routine,
  272. cg_d_stackframe_omited,
  273. {
  274.   Assembler parsers
  275. }
  276. assem_f_ev_zero_divide,
  277. assem_f_ev_stack_overflow,
  278. assem_f_ev_stack_underflow,
  279. assem_f_ev_invalid_number,
  280. assem_f_ev_invalid_op,
  281. assem_f_ev_unknown,
  282. assem_w_invalid_numeric,
  283. assem_e_escape_seq_ignored,
  284. assem_e_syn_prefix_not_found,
  285. assem_e_syn_try_add_more_prefix,
  286. assem_e_syn_opcode_not_found,
  287. assem_e_invalid_symbol_ref,
  288. assem_w_calling_overload_func,
  289. assem_e_constant_out_of_bounds,
  290. assem_e_none_label_contain_at,
  291. assem_e_invalid_operand,
  292. assem_w_override_op_not_supported,
  293. assem_e_error_in_binary_const,
  294. assem_e_error_in_octal_const,
  295. assem_e_error_in_hex_const,
  296. assem_e_error_in_integer_const,
  297. assem_e_invalid_labeled_opcode,
  298. assem_f_internal_error_in_findtype,
  299. assem_e_invalid_size_movzx,
  300. assem_e_16bit_base_in_32bit_segment,
  301. assem_e_16bit_index_in_32bit_segment,
  302. assem_e_invalid_opcode,
  303. assem_e_const_ref_not_allowed,
  304. assem_w_fwait_emu_prob,
  305. assem_e_invalid_opcode_and_operand,
  306. assem_w_opcode_not_in_table,
  307. assem_f_internal_error_in_concatopcode,
  308. assem_e_invalid_size_in_ref,
  309. assem_e_invalid_middle_sized_operand,
  310. assem_e_invalid_three_operand_opcode,
  311. assem_e_syntax_error,
  312. assem_e_invalid_operand_type,
  313. assem_e_segment_override_not_supported,
  314. assem_e_invalid_const_symbol,
  315. assem_f_error_converting_bin,
  316. assem_f_error_converting_hex,
  317. assem_f_error_converting_octal,
  318. assem_e_invalid_constant_expression,
  319. assem_e_unknown_id,
  320. assem_e_defining_index_more_than_once,
  321. assem_e_invalid_field_specifier,
  322. assem_f_internal_error_in_buildscale,
  323. assem_e_invalid_scaling_factor,
  324. assem_e_invalid_scaling_value,
  325. assem_e_scaling_value_only_allowed_with_index,
  326. assem_e_syn_no_ref_with_brackets,
  327. assem_e_expression_form_not_supported,
  328. assem_e_defining_seg_more_than_once,
  329. assem_e_defining_base_more_than_once,
  330. assem_e_negative_index_register,
  331. assem_e_syn_reference,
  332. assem_e_local_symbol_not_allowed_as_ref,
  333. assem_e_invalid_operand_in_bracket_expression,
  334. assem_e_invalid_symbol_name,
  335. assem_e_invalid_reference_syntax,
  336. assem_e_invalid_string_as_opcode_operand,
  337. assem_w_CODE_and_DATA_not_supported,
  338. assem_e_null_label_ref_not_allowed,
  339. assem_e_cannot_use_SELF_outside_a_method,
  340. assem_e_syn_start_with_bracket,
  341. assem_e_syn_register,
  342. assem_e_SEG_and_OFFSET_not_supported,
  343. assem_e_syn_opcode_operand,
  344. assem_e_invalid_string_expression,
  345. assem_e_expression_out_of_bounds,
  346. assem_f_internal_error_in_buildconstant,
  347. assem_w_repeat_prefix_and_seg_override,
  348. assem_e_invalid_or_missing_opcode,
  349. assem_e_invalid_prefix_and_opcode,
  350. assem_e_invalid_override_and_opcode,
  351. assem_e_too_many_operands,
  352. assem_e_dup_local_sym,
  353. assem_e_unknown_label_identifer,
  354. assem_e_assemble_node_syntax_error,
  355. assem_e_unknown_local_sym,
  356. assem_d_start_intel,
  357. assem_d_finish_intel,
  358. assem_e_not_directive_or_local_symbol,
  359. assem_e_slash_at_begin_of_line_not_allowed,
  360. assem_e_nor_not_supported,
  361. assem_e_invalid_fpu_register,
  362. assem_w_modulo_not_supported,
  363. assem_e_invalid_float_const,
  364. assem_e_size_suffix_and_dest_reg_dont_match,
  365. assem_f_internal_error_in_concatlabeledinstr,
  366. assem_w_float_bin_ignored,
  367. assem_w_float_hex_ignored,
  368. assem_w_float_octal_ignored,
  369. assem_e_invalid_real_const,
  370. assem_e_parenthesis_are_not_allowed,
  371. assem_e_invalid_reference,
  372. assem_e_cannot_use___SELF_outside_methode,
  373. assem_e_cannot_use___OLDEBP_outside_nested_procedure,
  374. assem_w_id_supposed_external,
  375. assem_e_invalid_seg_override,
  376. assem_e_string_not_allowed_as_const,
  377. assem_d_start_att,
  378. assem_d_finish_att,
  379. assem_e_switching_sections_not_allowed,
  380. assem_e_invalid_global_def,
  381. assem_e_line_separator_expected,
  382. assem_w_globl_not_supported,
  383. assem_w_align_not_supported,
  384. assem_w_lcomm_not_supported,
  385. assem_w_comm_not_supported,
  386. assem_e_invalid_lcomm_def,
  387. assem_e_invalid_comm_def,
  388. assem_e_local_sym_not_found_in_asm_statement,
  389. assem_e_assembler_code_not_returned_to_text,
  390. assem_f_internal_error_in_buildreference,
  391. assem_e_invalid_opcode_size,
  392. assem_w_near_ignored,
  393. assem_w_far_ignored,
  394. assem_d_creating_lookup_tables,
  395. assem_w_using_defined_as_local,
  396. assem_f_internal_error_in_handleextend,
  397. assem_e_invalid_char_smaller,
  398. assem_e_invalid_char_greater,
  399. assem_e_unsupported_opcode,
  400. assem_e_no_inc_and_dec_together,
  401. assem_e_invalid_reg_list_in_movem,
  402. assem_e_invalid_reg_list_for_opcode,
  403. assem_e_68020_mode_required,
  404. assem_d_start_motorola,
  405. assem_d_finish_motorola,
  406. assem_w_xdef_not_supported,
  407. assem_w_void_function,
  408. assem_f_invalid_suffix_intel,
  409. assem_e_extended_not_supported,
  410. assem_e_comp_not_supported,
  411. assem_w_mmxwarning_as_281,
  412. {
  413.   Exec, assembler, linker, binder calls
  414. }
  415. exec_i_assembling_pipe,
  416. exec_d_cant_create_asmfile,
  417. exec_w_assembler_not_found,
  418. exec_u_using_assembler,
  419. exec_w_error_while_assembling,
  420. exec_w_cant_call_assembler,
  421. exec_i_assembling,
  422. exec_w_linker_not_found,
  423. exec_u_using_linker,
  424. exec_e_objfile_not_found,
  425. exec_w_error_while_linking,
  426. exec_w_cant_call_linker,
  427. exec_i_linking,
  428. exec_w_binder_not_found,
  429. exec_w_ar_not_found,
  430. exec_e_dll_not_supported,
  431. exec_i_closing_script,
  432. {
  433.   Unit handling, PPU File
  434. }
  435. unit_u_ppu_loading,
  436. unit_d_ppu_time,
  437. unit_d_ppu_file_too_short,
  438. unit_d_ppu_invalid_header,
  439. unit_d_ppu_invalid_version,
  440. unit_d_ppu_flags,
  441. unit_d_ppu_crc,
  442. unit_t_ppu_source,
  443. unit_d_obj_and_asm_are_older_than_ppu,
  444. unit_d_obj_is_older_than_asm,
  445. unit_t_unitsearch,
  446. unit_u_ppu_write,
  447. unit_f_ppu_cannot_write,
  448. unit_f_ppu_read_error,
  449. unit_f_ppu_invalid_entry,
  450. unit_f_ppu_dbx_count_problem,
  451. unit_e_illegal_unit_name,
  452. unit_f_too_much_units,
  453. unit_f_circular_unit_reference,
  454. unit_f_cant_compile_unit,
  455. unit_w_switch_us_missed,
  456. unit_e_total_errors,
  457. unit_f_errors_in_unit,
  458. {This should be the last}
  459. endmsgconst
  460. );
  461.